package Menu;

public abstract class MenuItem {
	private String commandName;

	protected MenuItem(String commandName) {
		this.commandName = commandName;
	}
	
	public abstract boolean execute();
	
	public String getCommandName() {
		return commandName;
	}

	public void setCommandName(String commandName) {
		this.commandName = commandName;
	}
	
	protected void printFrame() {
		System.out.print("|" + commandName + "|" );
	}

}
